import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import First from '@/components/first/First'
import CompanyDynamic from '@/components/first/CompanyDynamic'
import MoreDynamic from '@/components/first/MoreDynamic'
import Register from '@/components/user/Register'
import EditPassword from '@/components/user/EditPassword'
import WeekPlan from '@/components/weekPlan/WeekPlan'
import Software from '@/components/software/Product'

import QuantyView from '@/components/software/QuantyView'
import ProductList from '@/components/software/ProductList'
import QuantyUrban from '@/components/software/QuantyUrban'
import QuantyMine from '@/components/software/QuantyMine'
import QuantyEngine from '@/components/software/QuantyEngine'
import QuantyHazard from '@/components/software/QuantyHazard'
import QuantyPetrol from '@/components/software/QuantyPetrol'
import QuantyPipe from '@/components/software/QuantyPipe'
import QuantySurvey from '@/components/software/QuantySurvey'
import QuantyHydrology from '@/components/software/QuantyHydrology'

import TechnicalSupport from '@/components/support/TechnicalSupport'
import Cooperation from '@/components/cooperation/Cooperation'
import IndustryInformation from '@/components/industry/IndustryInformation'
import OneInformation from '@/components/industry/OneInformation'
import AboutQuanty from '@/components/about/AboutQuanty'

import Admin from '@/components/admin/Admin'
import DynamicList from '@/components/admin/dynamic/DynamicList'
import AddDynamic from '@/components/admin/dynamic/AddDynamic'
import Success from '@/components/admin/cooperation/Success'
import Unit from '@/components/admin/cooperation/Unit'
import Product from '@/components/admin/product/Product'
import Industry from '@/components/admin/industry/Industry'
import Introduction from '@/components/admin/about/Introduction'
import Team from '@/components/admin/about/Team'
import AddTeam from '@/components/admin/about/AddTeam'
import EditTeam from '@/components/admin/about/EditTeam'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/admin', name: "Admin", component: Admin, children: [
        { path: '/dynamicList', name: "DynamicList", component: DynamicList },
        { path: '/addDynamic', name: "AddDynamic", component: AddDynamic },
        { path: '/editPassword', name: 'EditPassword', component: EditPassword },
        { path: '/success', name: 'Success', component: Success },
        { path: '/unit', name: 'Unit', component: Unit },
        { path: '/product', name: 'Product', component: Product },
        { path: '/industry', name: 'Industry', component: Industry },
        { path: '/introduction', name: "Introduction", component: Introduction },
        { path: '/team', name: 'Team', component: Team },
        { path: '/addTeam', name: 'AddTeam', component: AddTeam },
        { path: '/editTeam', name: "EditTeam", component: EditTeam }
      ]
    },
    { path: '/', component: Index },
    {
      path: '/index', name: 'Index', component: Index, children: [
        { path: '/first', name: 'First', component: First },
        { path: '/register', name: 'Register', component: Register },
        { path: '/companyDynamic', name: 'CompanyDynamic', component: CompanyDynamic },
        { path: '/moreDynamic', name: 'MoreDynamic', component: MoreDynamic },
        { path: '/weekPlan', name: 'WeekPlan', component: WeekPlan },
        {
          path: '/software', name: 'Software', component: Software, children: [
            { path: '/productList', name: 'ProductList', component: ProductList },
            { path: '/QuantyView', name: 'QuantyView', component: QuantyView },
            { path: '/QuantyUrban', name: 'QuantyUrban', component: QuantyUrban },
            { path: '/QuantyMine', name: 'QuantyMine', component: QuantyMine },
            { path: '/QuantyEngine', name: 'QuantyEngine', component: QuantyEngine },
            { path: '/QuantyHazard', name: 'QuantyHazard', component: QuantyHazard },
            { path: '/QuantyPetrol', name: 'QuantyPetrol', component: QuantyPetrol },
            { path: '/QuantyPipe', name: 'QuantyPipe', component: QuantyPipe },
            { path: '/QuantySurvey', name: 'QuantySurvey', component: QuantySurvey },
            { path: '/QuantyHydrology', name: 'QuantyHydrology', component: QuantyHydrology },
          ]
        },
        { path: '/technicalSupport', name: 'TechnicalSupport', component: TechnicalSupport },
        { path: '/cooperation', name: "Cooperation", component: Cooperation },
        { path: '/industryInformation', name: "IndustryInformation", component: IndustryInformation },
        { path: '/oneInformation', name: "OneInformation", component: OneInformation },
        { path: '/aboutQuanty', name: "AboutQuanty", component: AboutQuanty }
      ]
    },

  ]
})
